package com.xydpeng.rpc.springboot.listener;


import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import java.util.Map;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2023/4/8
 * @description:
 */
@Slf4j
public class RpcServerInitListener implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        ApplicationContext applicationContext = event.getApplicationContext();
        //Map<String, Object> RpcServiceBeans = applicationContext.getBeansWithAnnotation(RpcService.class);
        //RpcServerBootstrap serverBootstrap = applicationContext.getBean(RpcServerBootstrap.class);


    }
}
